<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>扩展运算符应用</title>
</head>
<body>
    <div></div>
    <div></div>
    <div></div>
    <script>
        //1. 数组的合并 
        // let kuaizi = ['肖央','王太利'];
        // let fenghuang = ['曾毅','玲花'];

        // let zuixuan = [...kuaizi, ...fenghuang];
        // console.log(zuixuan);

        //2. 新数组克隆
        // let team = ['E','G','M'];
        // let newTeam = [...team];
        // console.log(newTeam);

        //3. 将伪数组转为真正的数组
        let divs = document.querySelectorAll('div');
        let divss = [...divs];
        console.log(divss);
    </script>
</body>
</html>